//
//  ConfimSeatTableViewCell.m
//  ZiJinLian
//
//  Created by 震霄 张 on 2018/4/6.
//  Copyright © 2018年 lzy. All rights reserved.
//

#import "ConfimSeatTableViewCell.h"

@interface ConfimSeatTableViewCell()
@property (weak, nonatomic) IBOutlet UILabel *positionLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UIButton *requestBtn;


@end

@implementation ConfimSeatTableViewCell

- (void)awakeFromNib {
	
    [super awakeFromNib];
	self.autoresizingMask = UIViewAutoresizingNone;
	self.requestBtn.userInteractionEnabled = NO;
	self.requestBtn.layer.borderWidth = 1;
	self.requestBtn.layer.borderColor = TextColor6.CGColor;
	self.requestBtn.layer.cornerRadius = 4;
	self.requestBtn.clipsToBounds = YES;
	
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setModel:(ActivityPositionModel *)model
{
	_model = model;
	self.positionLabel.text = [NSString stringWithFormat:@"%ld排%ld座",model.row,model.column];
	self.priceLabel.text = [NSString stringWithFormat:@"¥%@",model.price];
	if (self.model.requestName.length>0) {
		self.requestBtn.layer.borderColor = Red_Color.CGColor;
		self.requestBtn.selected = YES;
	}else{
		self.requestBtn.layer.borderColor = TextColor6.CGColor;
		self.requestBtn.selected = NO;
	}
	
}
@end
